/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package databook.controller;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JCheckBox;

/**
 *
 * @author zach
 */
public class FilterActionListener  implements ActionListener {
    private String key;
    private String value;

    public FilterActionListener(String key, String val) {
        this.key = key;
        this.value = val;
    }

    public void actionPerformed(java.awt.event.ActionEvent evt) {
        Props.setFilter(key,value,((JCheckBox)evt.getSource()).isSelected());
    }
}
